package fx.iog.home;

import android.app.Fragment;
import android.app.ListFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import fx.iog.gen.R;

public class HomeFragment extends Fragment {

	private ListView listEvtVip;
	


	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		View view = inflater.inflate(R.layout.fragment_home, container, false);
		
		EventVipAdapter adapter = new EventVipAdapter(getActivity(),
				R.array.evtvip_img_perfil, R.array.evtvip_perfil_nome,
				R.array.evtvip_img_evento, R.array.evtvip_titulo,
				R.array.evtvip_genero, R.array.evtvip_data,
				R.array.evtvip_local, R.array.evtvip_ponto);
		
		
		listEvtVip = (ListView) view.findViewById(R.id.eventvip_list);
		
		listEvtVip.setAdapter(adapter);

		return view;
	}
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		//listEvtVip = (ListView) getView().findViewById(R.id.eventvip_list);
		
		
		//setListAdapter(adapter);
	}
}
